package com.kuangstudy.io.demo;

import java.io.File;

/**
 * ClassName: Demo2
 * date: 2021/07/14 20:23:29
 * @author zlk
 */
public class Demo2 {
    public static void main(String[] args) {
        File file = new File("E:\\1.jpg");
        System.out.println(file);
        if (file.exists()) {
            System.out.println(file.getName());
        }
        File file1 = new File("e:\\", "1.jpg");
        System.out.println(file1);
    }
}
